
 <!-- 引入Bootstrap CSS -->
    <link href="{% static 'bootstrap/bootstrap.min.css' %}" rel="stylesheet">
    <!-- Bootstrap 图标 -->
    <!-- 引入bootstrap-icons -->
    <link rel="stylesheet" href="{% static 'bootstrap-icons-1.13.1/bootstrap-icons.css' %}">
    <link href="{% static 'bootstrap-icons-1.13.1/fonts/bootstrap-icons.woff' %}" rel="stylesheet">
    <link href="{% static 'bootstrap-icons-1.13.1/fonts/bootstrap-icons.woff2' %}" rel="stylesheet">

<div class="container mt-4">
    <div class="card shadow-sm">
        
        <div class="card-body">
            <form method="post" action="{% url 'core:generate_month_schedule' %}">
                {% csrf_token %}
                
                <input type="hidden" name="grade" value="{{ grade.id }}">
                <input type="hidden" name="semester" value="{{ current_semester.id }}">
                <div class="form-group mb-3">
                    <label for="year">年份</label>
                    <input type="number" class="form-control" id="year" name="year" value="{{ current_year }}" required>
                </div>
                <div class="form-group mb-3">
                    <label for="month">月份</label>
                    <input type="number" class="form-control" id="month" name="month" min="1" max="12" value="{{ current_month }}" required>
                </div>
                <button type="submit" class="btn btn-primary">生成课程安排</button>
                <a href="{% url 'core:grade_schedule_list' %}" class="btn btn-secondary ml-2">取消</a>
            </form>
        </div>
    </div>
</div>
